import request from '@/utils/request'

// 查询事件管理列表
export function listEventManage(query) {
  return request({
    url: '/backstage/event/list',
    method: 'get',
    params: query
  })
}

// 查询事件管理详细
export function getEventManage(cEventId) {
  return request({
    url: '/backstage/event/' + cEventId,
    method: 'get'
  })
}

// 新增事件管理
export function addEventManage(data) {
  return request({
    url: '/backstage/event',
    method: 'post',
    data: data
  })
}

// 修改事件管理
export function updateEventManage(data) {
  return request({
    url: '/backstage/event',
    method: 'put',
    data: data
  })
}

// 删除事件管理
export function delEventManage(cEventId) {
  return request({
    url: '/backstage/event/' + cEventId,
    method: 'delete'
  })
}
